package com.gill.exp.common.enums;


import com.gill.exp.common.enums.base.BaseEnum;

public enum ResultCodeEnum implements BaseEnum {

    /**
     * 成功
     */
    SUCCESS("200","SUCCESS"),
    /**
     * 参数未通过@Valid验证
     */
    INVALID_PARAM("405","参数未通过@Valid验证"),
    /**
     * 参数格式有误
     */
    MISTYPE_PARAM("406","参数格式有误"),
    /**
     * 缺少参数
     */
    MISSING_PARAM("407","缺少参数"),
    /**
     * 不支持的请求类型
     */
    UNSUPPORTED_METHOD("408","不支持的请求类型"),
    /**
     * 业务层异常
     */
    S_SYS_UNKNOWN("501","业务层异常"),
    /**
     * 系统异常
     */
    S_SYS_ERROR("500","业务层异常");


    private String code;
    private String message;

    ResultCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
